package com.blog.conf;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

import com.alibaba.fastjson.JSONObject;
import com.blog.cloud.comm.modal.dto.MenuDto;

public class MyConstants {
	
	public static JSONObject json = new JSONObject();
	public static Logger log=Logger.getLogger("-Lexy-");
	
	public static final String PAGE_URL_PREFIXE = "lexyui";
	public static final String TBALE_PREFIX = "lexy_";
	
	
	public static final String[] MENU_SELECT = {"reg","log"};
	
	
	
	
	
	  // 接口返回状态码
    public static final String CODE_SUCCESS = "200";
    public static final String CODE_FAILURE = "201";

    // 接口返回描述
    public static final String DESC_SUCCESS = "success";
    public static final String DESC_FAILURE = "error";
	
    public static final String RETURN_TYPE_PAGE = "page";
    public static final String RETURN_TYPE_JSON = "json";
    
    
    
    
    public static List<MenuDto> setMenuList(){
    	
    	MenuDto dto1 = new MenuDto("登录","","log",null);
    	MenuDto dto2 = new MenuDto("注册","","reg",null);
    	List<MenuDto> cList = new ArrayList<MenuDto>();
    	
    	cList.add(dto1);
    	cList.add(dto2);
    	
    	MenuDto menu = new MenuDto("登录/注册","user", "" ,cList);
    	
    	
    	
    	List<MenuDto> menuList = new ArrayList<MenuDto>();
    	menuList.add(menu);
    	
    	return menuList;
    	
    }
    
}
